package com.example.qgorderprovider.server.impl;

import com.example.qgorderprovider.mapper.OrderMapper;
import com.example.qgorderprovider.server.OrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
@Transactional
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderMapper mapper;
    @Override
    public int AddOrder(Map map) {
        return mapper.AddOrder(map);
    }

    @Override
    public List<Map> getOrdersByUid(int userId) {
        return mapper.getOrdersByUid(userId);
    }

    @Override
    public Map getById(String id) {
        return mapper.getById(id);
    }

    @Override
    public int updateStatus(Map map) {
        return mapper.updateStatus(map);
    }
}
